//
//  MPWorkingKeyModel.h
//  MPOSDemoProject
//
//  Created by lfy on 2018/6/7.
//  Copyright © 2018年 develop. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MPBlueToothDefine.h"

@interface MPWorkingKeyModel : NSObject

/**
 密钥类型
 */
@property (nonatomic, assign) WorkKeyTypeEnum wKeyType;

/**
 密钥内容
 */
@property (nonatomic, strong) NSData *data;

/**
 密钥检验值,采用3des，明文密钥对8个0加密，取前4字节
 */
@property (nonatomic, strong) NSData *checkValue;

/**
 密钥索引
 */
@property (nonatomic, assign) int index;

@end

@interface MPEncryptionModel : NSObject

/**
 算法类型 
 */
@property (nonatomic, assign) AlgModeEnum algTye;

/**
 操作类型
 */
@property (nonatomic, assign) DesModeEnum desModeEnum;

/**
待加密数据
 */
@property (nonatomic, strong) NSData *data;

/**
 加解密钥索引
 */
@property (nonatomic, assign) int keyIndex;

@end

@interface MPCalculationMacModel:NSObject

/**
 数据长度
 */
@property (nonatomic, assign) int macLen;

/**
 mac数据
 */
@property (nonatomic, strong) NSData *macData;

@end


@interface InputPinEntModel:NSObject

/**
加密算法类型 0x02不加密，0x00 des，0x01 3des
 */
@property (nonatomic, assign) int encryType;

/**
 加密的pin数据
 */
@property (nonatomic, strong) NSData *macData;

@end
